package com.yuyou.tas.report.service.impl;

import com.yuyou.tas.report.mapper.ExamModelQuesMapper;
import com.yuyou.tas.report.service.IExamModelQuesService;
import com.yuyou.tas.service.api.report.entity.ExamModelQues;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamModelQuesServiceImpl implements IExamModelQuesService{

	@Autowired
	private ExamModelQuesMapper examModelQuesMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return examModelQuesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ExamModelQues record) {
		return examModelQuesMapper.insert(record);
	}

	@Override
	public ExamModelQues selectByPrimaryKey(Long id) {
		return examModelQuesMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ExamModelQues record) {
		return examModelQuesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<ExamModelQues> selectByOrganId(Long organId) {
		return examModelQuesMapper.selectByOrganId(organId);
	}

	@Override
	public List<ExamModelQues> getByModelId(Long modelId) {
		return examModelQuesMapper.getByModelId(modelId);
	}

}